package com.yunfei.bo;


import com.yunfei.entity.SkAnswDtlEntity;
import com.yunfei.utils.string.StringUtil;

/**
 *@tablename SK_ANSW_DTL
 *@author zhengyunfei
 *@createDate Wed Oct 24 14:07:17 CST 2018
 */


public class SkAnswDtlBo implements java.io.Serializable{
 private SkQuesDtlBo question;
 private String quesId;
 private String quesTit;
 private String answId;
 private String userId;
 private String userName;
 private String userType;
 private String createDate;
 private String answDtl;
 private String answQuesId;
 private String answUserId;
 private String answCheckFlg;
 private String answCheckDate;
 private String answCheckUser;
 private String answCheckUserName;
 private String repUserId;
 private String repDate;
 private String repCheckFlg;
 private String repCheckDate;
 private String repCheckUser;
 private String likeCnt;
 private String dissCnt;
 private String field;
 private String order;

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getAnswCheckUserName() {
        return answCheckUserName;
    }

    public void setAnswCheckUserName(String answCheckUserName) {
        this.answCheckUserName = answCheckUserName;
    }

    public String getAnswUserId() {
    return answUserId;
}

public void setAnswUserId(String answUserId) {
    this.answUserId = answUserId;
}

public String getUserName() {
    return userName;
}

public void setUserName(String userName) {
    this.userName = userName;
}

public String getQuesTit() {
    return quesTit;
}

public void setQuesTit(String quesTit) {
    this.quesTit = quesTit;
}

public SkQuesDtlBo getQuestion() {
    return question;
}

public void setQuestion(SkQuesDtlBo question) {
    this.question = question;
}

    /**
     * 更改排序字段
     * @return
     */
public String getField() {
        return field;
}
public void setField(String field) {
        this.field = field;
}
public String getOrder() {
        return order;
}
public void setOrder(String order) {
        this.order = order;
}
 private int curNo;
 public int getCurNo() {
     int value=(curNo-1)*curSize;
     return value;
 }
 public void setCurNo(int curNo) {
     this.curNo = curNo;
 }
 private int curSize;
 public int getCurSize() {
     return curSize;
 }
 public void setCurSize(int curSize) {
     this.curSize = curSize;
 }
 public void setQuesId(String quesId){
     this.quesId=quesId;
 }
 public String getQuesId(){
     return quesId;
 }
 public void setAnswId(String answId){
     this.answId=answId;
 }
 public String getAnswId(){
     return answId;
 }
 public void setUserId(String userId){
     this.userId=userId;
 }
 public String getUserId(){
     return userId;
 }
 public void setCreateDate(String createDate){
     this.createDate=createDate;
 }
 public String getCreateDate(){
     return createDate;
 }
 public void setAnswDtl(String answDtl){
     this.answDtl=answDtl;
 }
 public String getAnswDtl(){
     return answDtl;
 }
 public void setAnswQuesId(String answQuesId){
     this.answQuesId=answQuesId;
 }
 public String getAnswQuesId(){
     return answQuesId;
 }
 public void setAnswCheckFlg(String answCheckFlg){
     this.answCheckFlg=answCheckFlg;
 }
 public String getAnswCheckFlg(){
     return answCheckFlg;
 }
 public void setAnswCheckDate(String answCheckDate){
     this.answCheckDate=answCheckDate;
 }
 public String getAnswCheckDate(){
     return answCheckDate;
 }
 public void setAnswCheckUser(String answCheckUser){
     this.answCheckUser=answCheckUser;
 }
 public String getAnswCheckUser(){
     return answCheckUser;
 }
 public void setRepUserId(String repUserId){
     this.repUserId=repUserId;
 }
 public String getRepUserId(){
     return repUserId;
 }
 public void setRepDate(String repDate){
     this.repDate=repDate;
 }
 public String getRepDate(){
     return repDate;
 }
 public void setRepCheckFlg(String repCheckFlg){
     this.repCheckFlg=repCheckFlg;
 }
 public String getRepCheckFlg(){
     return repCheckFlg;
 }
 public void setRepCheckDate(String repCheckDate){
     this.repCheckDate=repCheckDate;
 }
 public String getRepCheckDate(){
     return repCheckDate;
 }
 public void setRepCheckUser(String repCheckUser){
     this.repCheckUser=repCheckUser;
 }
 public String getRepCheckUser(){
     return repCheckUser;
 }
 public void setLikeCnt(String likeCnt){
     this.likeCnt=likeCnt;
 }
 public String getLikeCnt(){
     return likeCnt;
 }
 public void setDissCnt(String dissCnt){
     this.dissCnt=dissCnt;
 }
 public String getDissCnt(){
     return dissCnt;
 }
 public static SkAnswDtlEntity boToEntity(SkAnswDtlBo bo){
     SkAnswDtlEntity entity=new SkAnswDtlEntity();
     entity.setQuesId(bo.getQuesId());
     entity.setAnswId(bo.getAnswId());
     entity.setUserId(bo.getUserId());
     entity.setCreateDate(bo.getCreateDate());
     entity.setAnswDtl(bo.getAnswDtl());
     entity.setAnswQuesId(bo.getAnswQuesId());
     entity.setAnswCheckFlg(bo.getAnswCheckFlg());
     entity.setAnswCheckDate(bo.getAnswCheckDate());
     entity.setAnswCheckUser(bo.getAnswCheckUser());
     entity.setRepUserId(bo.getRepUserId());
     entity.setRepDate(bo.getRepDate());
     entity.setRepCheckFlg(bo.getRepCheckFlg());
     entity.setRepCheckDate(bo.getRepCheckDate());
     entity.setRepCheckUser(bo.getRepCheckUser());
     entity.setLikeCnt(bo.getLikeCnt());
     entity.setDissCnt(bo.getDissCnt());
     entity.setAnswUserId(bo.getAnswUserId());
     return entity;
 }
 public static SkAnswDtlBo entityToBo(SkAnswDtlEntity bo){
     SkAnswDtlBo entity=new SkAnswDtlBo();
     entity.setQuesId(bo.getQuesId());
     entity.setAnswId(bo.getAnswId());
     entity.setUserId(bo.getUserId());
     entity.setCreateDate(bo.getCreateDate());
     entity.setAnswDtl(bo.getAnswDtl());
     entity.setAnswQuesId(bo.getAnswQuesId());
     entity.setAnswCheckFlg(bo.getAnswCheckFlg());
     entity.setAnswCheckDate(bo.getAnswCheckDate());
     entity.setAnswCheckUser(bo.getAnswCheckUser());
     entity.setRepUserId(bo.getRepUserId());
     entity.setRepDate(bo.getRepDate());
     entity.setRepCheckFlg(bo.getRepCheckFlg());
     entity.setRepCheckDate(bo.getRepCheckDate());
     entity.setRepCheckUser(bo.getRepCheckUser());
     entity.setLikeCnt(bo.getLikeCnt());
     entity.setDissCnt(bo.getDissCnt());
     entity.setAnswUserId(bo.getAnswUserId());
     return entity;
 }
 public static String changeFieldColumn(String field){
     String result="";
         if(!StringUtil.isNullOrEmpty(field)){
             if(field.equals("quesId")){
                 result="QUES_ID";
             }
             if(field.equals("answId")){
                 result="ANSW_ID";
             }
             if(field.equals("userId")){
                 result="USER_ID";
             }
             if(field.equals("createDate")){
                 result="CREATE_DATE";
             }
             if(field.equals("answDtl")){
                 result="ANSW_DTL";
             }
             if(field.equals("answQuesId")){
                 result="ANSW_QUES_ID";
             }
             if(field.equals("answCheckFlg")){
                 result="ANSW_CHECK_FLG";
             }
             if(field.equals("answCheckDate")){
                 result="ANSW_CHECK_DATE";
             }
             if(field.equals("answCheckUser")){
                 result="ANSW_CHECK_USER";
             }
             if(field.equals("repUserId")){
                 result="REP_USER_ID";
             }
             if(field.equals("repDate")){
                 result="REP_DATE";
             }
             if(field.equals("repCheckFlg")){
                 result="REP_CHECK_FLG";
             }
             if(field.equals("repCheckDate")){
                 result="REP_CHECK_DATE";
             }
             if(field.equals("repCheckUser")){
                 result="REP_CHECK_USER";
             }
             if(field.equals("likeCnt")){
                 result="LIKE_CNT";
             }
             if(field.equals("dissCnt")){
                 result="DISS_CNT";
             }
     }
     return result;
 }
}

